To Cesbit and update GKE statefulset configuration example
authorJeroen van der Heijden <jeroen@cesbit.com>
Fri, 14 Jan 2022 12:17:15 +0000 (13:17 +0100)
committerJeroen van der Heijden <jeroen@cesbit.com>
Fri, 14 Jan 2022 12:17:15 +0000 (13:17 +0100)
docker/Dockerfile
docs/Kubernetes/statefulset.yaml
main.c
src/siri/db/tag.c
src/siri/db/tags.c

index 86c3680f95acd19164aeb4240cffd0a9f297ba3f..19c4d8dc905b17ed7d7d4c9fc77e83707e79b426 100644 (file)
@@ -1,4 +1,4 @@
-FROM alpine:latest
+FROM amd64/alpine:3.13
 RUN apk update && \
     apk upgrade && \
     apk add gcc make libuv-dev musl-dev pcre2-dev yajl-dev util-linux-dev linux-headers git && \
index 68f47928486f4c42eabcad0ee808da6e6f968ac7..768f56a5d562894167087b9b10b4aaeeebb1991c 100644 (file)
@@ -22,6 +22,15 @@ spec:
       dnsConfig:
         searches:
         - siridb.default.svc.cluster.local
+      tolerations:  # wait 4 hour as synchronizing might take some time
+      - key: "node.kubernetes.io/not-ready"
+        operator: "Exists"
+        effect: "NoExecute"
+        tolerationSeconds: 14400
+      - key: "node.kubernetes.io/unreachable"
+        operator: "Exists"
+        effect: "NoExecute"
+        tolerationSeconds: 14400
       containers:
       - name: siridb
         image: siridb/siridb-server:2.0.42  # Pin to a specific version
@@ -67,13 +76,14 @@ spec:
           httpGet:
             path: /healthy
             port: 8080
+          initialDelaySeconds: 1800
           periodSeconds: 20
           timeoutSeconds: 10
         readinessProbe:
           httpGet:
             path: /ready
             port: 8080
-          initialDelaySeconds: 15
+          initialDelaySeconds: 20
           periodSeconds: 20
           timeoutSeconds: 10
   volumeClaimTemplates:
diff --git a/main.c b/main.c
index 563fd9a66b887d5a28a1fb12dedcfc537b9f13bb..6368301ddbc9c1e50f628283a04f2d876b3e6a54 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,10 +1,10 @@
 /*
  * main.c - SiriDB.
  *
- * author/maintainer : Jeroen van der Heijden <jeroen@transceptor.technology>
+ * author/maintainer : Jeroen van der Heijden <jeroen@cesbit.com>
  * contributors      : https://github.com/SiriDB/siridb-server/contributors
  * home page         : https://siridb.net
- * copyright         : 2018, Transceptor Technology
+ * copyright         : 2022, Cesbit
  *
  */
 #include <locale.h>
index d4aed6ac14336bc3115184523467db1a7c052afd..46581447a68368d3def3ecf3d43aaa9e06506484 100644 (file)
@@ -2,8 +2,8 @@
  * tag.c - Tag.
  *
  * author       : Jeroen van der Heijden
- * email        : jeroen@transceptor.technology
- * copyright    : 2017, Transceptor Technology
+ * email        : jeroen@cesbit.com
+ * copyright    : 2022, Cesbit
  *
  * changes
  *  - initial version, 16-06-2017
index fe4697b506d0ab85ca9aed54ee4045d4880fa69d..e8563cf8b0484bb3862222aff2c06ebcd1a69f33 100644 (file)
@@ -2,8 +2,8 @@
  * tags.c - Tags.
  *
  * author       : Jeroen van der Heijden
- * email        : jeroen@transceptor.technology
- * copyright    : 2017, Transceptor Technology
+ * email        : jeroen@cesbit.com
+ * copyright    : 2022, Cesbit
  *
  * changes
  *  - initial version, 16-06-2017